<?
session_start();
$pagina=$_GET["pag"];
$perm=$_GET["pz"];
$cadena=$_GET["cadp"];
$comando=$_GET["cmd"];
$iditem=$_GET["id"];
print '<html>';
print '<head>';
print '<title>SEMAF - FuenDocu Admin</title>';
print '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">';
print '<link href="css/adm_est.css" rel="stylesheet" type="text/css">';
print '</head>';
print '<body>';
print '<table width="600" border="1" bordercolor="#0000FF" bgcolor="#EEEEEE" cellspacing="0" align="center" class="normal">';
print '<tr><td align="center" class="normal">';
print '<b>ACCESO DENEGADO</b>';
print '</td></tr>';
print '<tr><td align="center" class=normal>';
print '<br>&nbsp;<i>'.$_GET['msg'].'</i><br>&nbsp;';
print '</td></tr>';
print '<tr><td align="center" bgcolor="#FFFFFF">';
if($pagina){
	if($pagina=='panel.php'){
		unset($_SESSION['admin_id_afd']);
		unset($_SESSION['es_administrador']);
		print '<a href="login.php" class="Link"><img src="i/trian.gif" border=0"> Login </a>';
	}else{
		if($perm=='0'){
			print '<br><a href="panel.php" class="Link"><img src="i/f_circu.gif" border="0"> Volver</a>';
		}else{
			if($comando){
				if($iditem){
					print '<br><a href="'.$pagina.'?cmd='.$comando.'&id='.$iditem.'" class="Link"><img src="i/f_circu.gif" border=0">Volver</a>';
				}else{
					print '<br><a href="'.$pagina.'?cmd='.$comando.'" class="Link"><img src="i/f_circu.gif" border=0">Volver</a>';
				}
			}else{
				print '<br><a href="'.$pagina.'" class="Link"><img src="i/f_circu.gif" border=0">Volver</a>';
			}
		}
	}
}else{
	print '<br><a href="panel.php" class="Link"><img src="i/f_circu.gif" border="0"> Volver</a>';
}
print '</td></tr>';
print '</table>';
print '</body>';
print '</html>';
?>











